_SETTINGS:SetPlayerMenuOff()
-- ********** CVN75 START **********
local AirBoss_CVN75 = AIRBOSS:New("CVN-75", "格里芬级核动力航空母舰CVN75")

-- local window1_CVN75 = AirBoss_CVN75:AddRecoveryWindow(
-- "6:15","17:00",
-- 1,
-- nil,
-- true,25)

AirBoss_CVN75:SetSoundfilesFolder("Airboss Soundfiles/")

-- 航母参数
AirBoss_CVN75:SetLSORadio(134.0)
AirBoss_CVN75:SetMarshalRadio(128.5)
AirBoss_CVN75:SetTACAN(75,"X", "C75")
AirBoss_CVN75:SetICLS(2, "C75")

AirBoss_CVN75:SetMenuRecovery(30, 20, false)

AirBoss_CVN75:Load()

AirBoss_CVN75:SetAutoSave("D:\\Saved Games\\DCS.openbeta\\Missions\\AirBossData")

AirBoss_CVN75:SetTrapSheet()

-- AEW
local AEW_CVN75 = RECOVERYTANKER:New("CVN-75", "EagleEye")
AEW_CVN75:SetAWACS()
AEW_CVN75:SetRadio(251)
AEW_CVN75:SetAltitude(20000)
AEW_CVN75:SetCallsign(CALLSIGN.AWACS.Focus)
AEW_CVN75:SetRacetrackDistances(30, 15)
AEW_CVN75:SetModex(611)
AEW_CVN75:SetTACAN(5, "AEW")
AEW_CVN75:__Start(1)

function AirBoss_CVN75:OnAfterLSOGrade(From,Event,To,playerData,grade)
  local PlayerData = playerData
  local Grade = grade
  
  local score = tonumber(Grade.points)
  local name = tostring(PlayerData.name)
  
  local msg = "格里芬飞行员" .. name .. "着舰，分数: " .. tostring(score)
  MESSAGE:New(msg ,10, "航空长通报", false):ToAll()
  
end

AirBoss_CVN75:Start()

-- ********** CVN74 START **********
local AirBoss_CVN74 = AIRBOSS:New("CVN-74", "格里芬级核动力航空母舰CVN74")

-- local window1_CVN74 = AirBoss_CVN74:AddRecoveryWindow(
-- "6:15","17:00",
-- 1,
-- nil,
-- true,25)

AirBoss_CVN74:SetSoundfilesFolder("Airboss Soundfiles/")

-- 航母参数
AirBoss_CVN74:SetLSORadio(133.0)
AirBoss_CVN74:SetMarshalRadio(127.5)
AirBoss_CVN74:SetTACAN(74,"X", "C74")
AirBoss_CVN74:SetICLS(1, "C74")

AirBoss_CVN74:SetMenuRecovery(30, 25, false)

AirBoss_CVN74:Load()

AirBoss_CVN74:SetAutoSave("D:\\Saved Games\\DCS.openbeta\\Missions\\AirBossData")

AirBoss_CVN74:SetTrapSheet()

function AirBoss_CVN74:OnAfterLSOGrade(From,Event,To,playerData,grade)
  local PlayerData = playerData
  local Grade = grade
  
  local score = tonumber(Grade.points)
  local name = tostring(PlayerData.name)

end

AirBoss_CVN74:Start()


env.setErrorMessageBoxEnabled(false)